import org.junit.Test;

import com.bjsxt.ego.common.util.ConstatFinalUtil;
import com.bjsxt.ego.goods.pojo.Goods;
import com.bjsxt.ego.goods.pojo.GoodsEnum;

public class test
{
	
	@Test
	public void testStatusStr()
	{
		ConstatFinalUtil.LOGGER.info("---- 测试状态字符 ----");
		/**
		 * 状态：0：禁用1：启用
		 */
		Goods goods = new Goods();
		GoodsEnum[] goodsEnums = GoodsEnum.values();
		for (int i = 0; i < goodsEnums.length; i++)
		{
			GoodsEnum goodsEnum = goodsEnums[i];
			if (goodsEnum.toString().startsWith("STATUS_"))
			{
				if (goodsEnum.getStatus() == goods.getStatus())
				{
					//this.statusStr = goodsEnum.getInfo();
					break;
				}
			}
		}
	}
}
